﻿using Volo.Abp.Domain.Entities.Auditing;

namespace FlyingEye.DeviceMaintenance
{
    /// <summary>
    /// 设备保养 Checked Result 项
    /// 在创建一个记录时，会同时创建校验项
    /// </summary>
    public class DevicePartCheckedResultModel : AuditedEntity<Guid>
    {
        public DevicePartCheckedResultModel(Guid id, Guid maintenanceRecordId, Guid checkItemId, bool isPassed) : base(id)
        {
            Id = id;
            MaintenanceRecordId = maintenanceRecordId;
            CheckItemId = checkItemId;
            IsPassed = isPassed;
        }

        /// <summary>
        /// 关联记录 id
        /// </summary>
        public Guid MaintenanceRecordId { get; set; }

        /// <summary>
        /// 关联 Check 项 ID
        /// </summary>
        public Guid CheckItemId { get; set; }

        /// <summary>
        /// 是否校验通过
        /// </summary>
        public bool IsPassed { get; set; }
    }
}
